using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Collections;
using System.Drawing.Design;

namespace MingProject
{
    public class TaskTypeColumn : DataGridViewColumn
    {
        public TaskTypeColumn()
        {
            this.CellTemplate =new TaskTypeCell();
        }
    }
    public class TaskTypeCell : DataGridViewComboBoxCell
    {
        public TaskTypeCell()
        { 
        }
        public override object DefaultNewRowValue
        {
            get
            {
                return base.DefaultNewRowValue;
            }
        }
        protected override object GetValue(int rowIndex)
        {
            return "Outernal"; 
            //return base.GetValue(rowIndex);
        }
        public override ObjectCollection Items
        {
            get
            {
                ObjectCollection oc = new ObjectCollection(this);
                oc.Add("Internal");
                oc.Add("Outernal");
                return oc;
                //return base.Iotems;
            }
        }
    }
}
